<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        /* 基本页面样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f4f4;
            color: #333;
            display: flex;
            min-height: 100vh;
        }

        .container {
            margin-left: 260px; /* 留出侧边栏的空间 */
            padding: 30px;
            flex-grow: 1;
        }

        /* 侧边栏样式 */
        .sidebar {
            width: 250px;
            background-color: #2c3e50;
            color: white;
            position: fixed;
            top: 0;
            left: 0;
            height: 100%;
            padding-top: 20px;
            padding-left: 20px;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        }

        .sidebar h1 {
            font-size: 24px;
            color: #ecf0f1;
            margin-bottom: 30px;
        }

        .sidebar .btn {
            display: block;
            padding: 12px;
            margin-bottom: 15px;
            font-size: 18px;
            background-color: #3498db;
            color: white;
            text-align: center;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            transition: background-color 0.3s;
        }

        .sidebar .btn:hover {
            background-color: #2980b9;
        }

        .sidebar .btn:active {
            background-color: #21618c;
        }

        .sidebar .btn-secondary {
            background-color: #7f8c8d;
        }

        .sidebar .btn-secondary:hover {
            background-color: #616a6b;
        }

        .sidebar .btn-warning {
            background-color: #f39c12;
        }

        .sidebar .btn-warning:hover {
            background-color: #e67e22;
        }

        /* 主体内容样式 */
        .main-content {
            margin-left: 260px;
            padding: 30px;
            flex-grow: 1;
        }

        h1 {
            font-size: 28px;
            color: #333;
            margin-bottom: 30px;
        }

        /* 表格样式 */
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }

        th, td {
            padding: 12px;
            text-align: left;
            border: 1px solid #ddd;
            background-color: #fff;
        }

        th {
            background-color: #3498db;
            color: white;
        }

        tr:hover {
            background-color: #f1f1f1;
        }

        /* 表单输入框样式 */
        input[type="text"], input[type="email"], input[type="password"], textarea {
            width: 100%;
            padding: 10px;
            font-size: 16px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #fff;
            margin-bottom: 20px;
        }

        textarea {
            resize: vertical;
            min-height: 100px;
        }

        /* 按钮样式 */
        .btn {
            padding: 10px 20px;
            font-size: 16px;
            background-color: #27ae60;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin: 5px;
            transition: background-color 0.3s;
        }

        .btn:hover {
            opacity: 0.8;
        }

        .btn-primary {
            background-color: #3498db;
        }

        .btn-primary:hover {
            background-color: #2980b9;
        }

        .btn-warning {
            background-color: #f39c12;
        }

        .btn-warning:hover {
            background-color: #e67e22;
        }

        .btn-secondary {
            background-color: #7f8c8d;
        }

        .btn-secondary:hover {
            background-color: #616a6b;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .sidebar {
                width: 100%;
                height: auto;
                position: relative;
                padding-left: 10px;
            }

            .sidebar h1 {
                font-size: 20px;
            }

            .main-content {
                margin-left: 0;
                padding: 15px;
            }

            h1 {
                font-size: 24px;
            }

            .btn {
                padding: 10px 20px;
                font-size: 14px;
            }

            table {
                font-size: 14px;
            }

            .sidebar .btn {
                padding: 10px;
                font-size: 16px;
            }
        }

        /* 卡片样式 */
        section {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        h2 {
            font-size: 22px;
            color: #333;
            margin-bottom: 20px;
        }

        /* 表单组的间隔 */
        .form-group {
            margin-bottom: 20px;
        }

        /* 提交按钮 */
        button[type="submit"] {
            background-color: #27ae60;
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 16px;
            cursor: pointer;
            border-radius: 5px;
        }

        button[type="submit"]:hover {
            background-color: #2ecc71;
        }

        /* 输入框聚焦时的样式 */
        input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
            border-color: #3498db;
            outline: none;
        }

        /* 取消按钮 */
        a.btn-secondary {
            background-color: #7f8c8d;
            padding: 10px 20px;
            text-decoration: none;
            color: white;
        }

        a.btn-secondary:hover {
            background-color: #616a6b;
        }

        /* 顶部标题栏 */
        h1, h2 {
            margin-bottom: 20px;
            font-weight: 600;
        }
    </style>    <title>团队基本信息维护</title>
</head>
<body>

<div class="sidebar">
    <h1>团队管理员界面</h1>
    <a href="/admin/teamadmin/teammanagement" class="btn">团队管理</a>
    <a href="/admin/teamadmin/achievementmanagement" class="btn">科研成果管理</a>
    <a href="/admin/teamadmin/usermanagement" class="btn">用户管理</a>
    <a href="/admin/teamadmin/articlemanagement" class="btn">文章管理</a>
    <a href="/admin/teamadmin/feedbackmanagement" class="btn">反馈管理</a>
    <a href="/logout">退出</a>
</div>

<!-- 主体内容区域 -->
<div class="main-content">
    <h1>编辑团队基本信息</h1>
    <form action="<c:url value='/admin/teamadmin/teaminfo/edit'/>" method="POST">
        <div class="form-group">
            <label for="teamName">团队名称:</label>
            <input type="text" id="teamName" name="teamName" value="${team.teamName}" required class="form-control">
        </div>
        <div class="form-group">
            <label for="researchField">研究领域:</label>
            <input type="text" id="researchField" name="researchField" value="${team.researchField}" required class="form-control">
        </div>
        <div class="form-group">
            <label for="description">团队简介:</label>
            <textarea id="description" name="description" rows="4" required class="form-control">${team.description}</textarea>
        </div>
        <button type="submit">保存</button>
        <a href="<c:url value='/admin/teamadmin/teammanagement'/>" class="btn-secondary">取消</a>
    </form>
</div>

</body>
</html>
